package com.tfswue.group.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Value("${email}")
    private String email;
    @Value("${my1.email}")
    private String my1Email;
    @Value("${city1[0]}")
    private String city1;

    @Value("${sxt[0].mobile}")
    private String mobile;
    @RequestMapping("/hello")
    public String hello()
    {
        return "配置好热部署之后的显示信息：";
    }
    @RequestMapping("/getvalue")
    public String getValue(){
        return email+";"+my1Email+";"+city1+";"+mobile;
    }
    @RequestMapping("/email")
    public String email() {
        return email;
    }
}
